I send a configuration that i use for my test apache rewrite proxy
I use mod_rewrite module, you can use mod_reverseproxy
Suppose that PD30 is behind the firewall.
mod_rewrite
1) Load the module
##########Reverse
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
2) Addd this configuration
##
#Reverse Proxy COnfiguration
##
RewriteEngine on
RewriteLog "logs/rewrite.log"
RewriteLogLevel 6
#RewriteMap servers txt:c:/apache/apache2/remap/map.txt
#RewriteRule /(.*).jsp.*
http://pd40:80/$1.jsp$2 [P]
#RewriteCond %{REQUEST_URI} ^/port
#RewriteRule /(.*)
http://pd40/$1 [P]
#RewriteCond %{
HTTP:Cookie} .*noteshost=clyde.*
#RewriteCond %{REQUEST_URI} ^/(.*).nsf(.*)
#RewriteRule /(.*)
http://pd30/$1 [P]
#RewriteCond %{
HTTP:Cookie} .*DomAuthSessId*=clyde.*
RewriteCond %{REQUEST_URI} ^/(.*).nsf(.*)
RewriteRule /(.*)
http://pd30/$1 [P]
RewriteCond %{REQUEST_URI} ^/(.*)DWAY(.*)
RewriteRule /(.*)
http://pd30/$1 [P]
#RewriteCond %{REQUEST_URI} ^/(.*)DWAY(.*)
#RewriteRule /(.*)
http://pd30/$1 [PT]
#RewriteCond %{REQUEST_URI} ^/(.*).nsf(.*)
#RewriteRule /(.*)
http://pd30/$1 [PT]
#RewriteCond %{REQUEST_URI} ^/(.*)DomAuthSessId(.*)
#RewriteRule /(.*)
http://pd30/$1 [P]
RewriteCond %{REQUEST_URI} ^/(.*)lotus(.*)
RewriteRule /(.*)
http://pd30/$1 [PT]
#RewriteCond %{REQUEST_URI} ^/(.*)
#RewriteRule /(.*)
http://pd30/$1 [P]
#RewriteCond %{REQUEST_URI} ^/(.*.*)
#RewriteRule /(.*)
http://pd30/$1 [P]
ProxyPassReverse /
http://pd30/
A question:
in this configuration the mail works, but i have some problem with my application because i use a static href...Some of you can help me?
The reverse proxy o mod_rwrite works in url command.... and so whne i use href the Apache do not analyze my request.